# -*- mode: python; coding: utf-8; -*-
##--------------------------------------------------------------------------##
##
## Copyright (C) 1998-2003 Markus Oberhumer <markus@oberhumer.com>
## Copyright (C) 2003 Mt. Hood Playing Card Co.
## Copyright (C) 2005-2010 Skomoroh <skomoroh@users.sourceforge.net>
## Copyright (C) 2010-2013 Jeremy Austin-Bardo <tjaustinbardo@gmail.com>
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, version 3 of the License.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program.  If not, see <http://www.gnu.org/licenses/>.
##
##--------------------------------------------------------------------------##

import os

#PACKAGE = 'PySolFC'
#TITLE = 'PySol'
#PACKAGE_URL = 'http://pysolfc.sourceforge.net/'

PACKAGE = 'npsolitaire'
TITLE = 'NPS Solitaire'
PACKAGE_URL = 'http://code.google.com/p/not-python-solitaire'

VERSION = '7.77'
VERSION_TUPLE = (7, 77,)

REDO = 1 | 16
UNDO = 2 | 16
UPDATE = 3 | 64


# Tk windowing system (auto set up in init.py)
WIN_SYSTEM = 'x11'                      # win32, x11, aqua, classic
USE_PY2EXE = False

# sound
# available values:
#   'pss' - PySol-Sound-Server (all)
#   'pygame' - PyGame (all)
#   'oss' (*nix)
#   'win' (windows)
#   'none' - disable
SOUND_MOD = 'auto'

# data dirs
DATA_DIRS = []
# you can add your extra directories here
if os.name == 'posix':
    DATA_DIRS = [
        '/usr/share/PySolFC',
        '/usr/local/share/PySolFC',
        '/usr/games/PySolFC',
        '/usr/local/games/PySolFC',
        ]
if os.name == 'nt':
    pass

# Set default image extensions and PIL use.
IMAGE_EXTENSIONS = [".gif", ".ppm", ".png", ".jpg", ".bmp"]

TOP_SIZE = 10
TOP_TITLE = n_('Top 10')

# use menu for select game
SELECT_GAME_MENU = True

# i18n, see also options.py
TRANSLATE_GAME_NAMES = True

# debug
DEBUG = 0                               # must be integer
CHECK_GAMES = False                     # check duplicated names and classes

import configobj

class _ConfigOptions(configobj.ConfigObj):
    """
    """

    def __init__(self, **kwargs):
        """
        """
        self._kwargs = kwargs

    def add_spec(self, **kwargs):
        """
                """
        self._kwargs.update(kwargs)
        super(_ConfigOptions, self).__init__(**self._kwargs)


CONF_OPT = _ConfigOptions(encoding='UTF8', create_empty=True)